<template>
  <n-button @click="handleError">清除错误</n-button>
</template>

<script setup>
import {
  NButton
} from 'naive-ui'

const props = defineProps({
  error: Object
})
const handleError = ()=>{
  clearError({ redirect: '/' })
}
</script>

<style scoped>

</style>